<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<link href="css/main.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<link href="css/user.css" rel="stylesheet" type="text/css" />
		<title>用户主页面</title>
	</head>

	<body>
		<div align="center">
			<table border="0" cellpadding="0" cellspacing="0" width="910">
				<tbody>
					<tr>
						<td width="100%"></td>
					</tr>
				</tbody>
			</table>
		</div>

		<div id="layout">

			<!-- 页面头部 -->
			<%@ include file="/WEB-INF/common/header/header.jsp"%>

			<div id="user_main">

				<!-- 用户左边导航区 -->
				<%@ include file="/WEB-INF/jsp/user/user_common/user_left_nav.jsp"%>

				<div id="user_main_right">

					<div id="user_left_top">
						当前位置: 个人设置 &gt;&gt;
						<a href="userIndex!getUserInfo.do">用户首页</a>
					</div>

					<div id="user_left_first_layout">

						<div id="user_left_first">
							<center>
								<s:if test="(user.photo == '')|(user.photo == null)">
									<img src="images/small_default_head_pic.jpg" />
								</s:if>
								<s:else>
									<img src="<s:property value="user.photo"/>" />
								</s:else>
							</center>
						</div>

						<div id="user_left_second">
							用户相关信息
						</div>
					</div>

					<div id="user_left_title_layout">
						未完成交易信息
					</div>
					<div id="user_left_orderinfo">
						<table width="692" class="order_info" border="1" cellspacing="0">
							<tr>
								<td width="69" height="37">
									订单号
								</td>
								<td width="87">
									商品
								</td>
								<td width="81">
									商家
								</td>
								<td width="91">
									下单时间
								</td>
								<td width="95">
									订单金额
								</td>
								<td width="107">
									状态
								</td>
								<td width="116">
									操作
								</td>
							</tr>
							<s:iterator value="ordersList" status="status">
								<tr>
									<td height="34">
										<s:property value="ordersNum" />
									</td>
									<td>
										<a href=""><s:property value="productName" /> </a>
									</td>
									<td>
										<a href=""><s:property value="seller.shopName" /> </a>
									</td>
									<td>
										<s:date name="createDate" format="yyyy-MM-dd" />
									</td>
									<td>
										<s:property value="allMoney" />
									</td>
									<td>
										<s:if test="status == 0">
											<h4>
												未交易
											</h4>
										</s:if>
										<s:elseif test="status == 1">
											<h4>
												已付款未发货
											</h4>
										</s:elseif>
										<s:elseif test="status == 2">
											<h4>
												已发货未确认
											</h4>
										</s:elseif>
										<s:elseif test="status == 3">
											<h4>
												交易完成
											</h4>
										</s:elseif>
										<s:else>
											<h4>
												交易已取消
											</h4>
										</s:else>
									</td>
									<td>
										&nbsp;
									</td>
								</tr>
							</s:iterator>
						</table>
					</div>
					<div id="user_left_orderinfo_devide">
						<jsp:include page="/WEB-INF/jsp/page.jsp">
							<jsp:param name="url" value="userIndex!getUserInfo.do" />
						</jsp:include>
					</div>

				</div>

			</div>

			<!-- footer尾部 -->
			<%@ include file="/WEB-INF/common/footer/footer.jsp"%>
		</div>
	</body>

</html>